package com.prig.base.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class RolePermissionRelationId implements Serializable {
    @Column(nullable = false)
    private long permissionId;
    @Column(nullable = false)
    private long roleId;

    public RolePermissionRelationId() {
    }

    public RolePermissionRelationId(long permissionId, long roleId) {
        this.permissionId = permissionId;
        this.roleId = roleId;
    }

    public long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(long permissionId) {
        this.permissionId = permissionId;
    }

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }
}
